Messages/infoMessage.c File Reference

message containing information about this device More...

#include "infoMessage.h"
#include "../../Common/printf.h"
#include "../../Common/utilities.h"

Functions

void printInfoMessage (struct infoMessage *im)
void serializeInfoMessage (struct infoMessage *im, unsigned char *destinationPtr)
struct infoMessage deserializeInfoMessage (unsigned char *source)
unsigned int getSizeOfInfoMessage (struct infoMessage *im)

Detailed Description

message containing information about this device

Info Message Cluster = 0x0007

Rev
598
Author
dsmith
Date
2010-06-14 16:08:43 -0700 (Mon, 14 Jun 2010)

YOU ACKNOWLEDGE AND AGREE THAT THE SOFTWARE AND DOCUMENTATION ARE PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY, TITLE, NON-INFRINGEMENT AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL TEXAS INSTRUMENTS OR ITS LICENSORS BE LIABLE OR OBLIGATED UNDER CONTRACT, NEGLIGENCE, STRICT LIABILITY, CONTRIBUTION, BREACH OF WARRANTY, OR OTHER LEGAL EQUITABLE THEORY ANY DIRECT OR INDIRECT DAMAGES OR EXPENSES INCLUDING BUT NOT LIMITED TO ANY INCIDENTAL, SPECIAL, INDIRECT, PUNITIVE OR CONSEQUENTIAL DAMAGES, LOST PROFITS OR LOST DATA, COST OF PROCUREMENT OF SUBSTITUTE GOODS, TECHNOLOGY, SERVICES, OR ANY CLAIMS BY THIRD PARTIES (INCLUDING BUT NOT LIMITED TO ANY DEFENSE THEREOF), OR OTHER SIMILAR COSTS.


Function Documentation

struct infoMessage deserializeInfoMessage ( unsigned char *  source  )  [read]

Creates an infoMessage from the stream of bytes starting at source

Parameters:
source the beginning of the serialized Info Message
Returns:
an infoMessage from the parsed data
Todo:

Check that numParameters < MAX_PARAMETERS_IN_INFO_MESSAGE

Point source to length field, and verify if length field == (sourcePtr - source)?

unsigned int getSizeOfInfoMessage ( struct infoMessage im  ) 
Returns:
the size of the Info Message, including all KVPs
void printInfoMessage ( struct infoMessage im  ) 

Display the contents of the infoMessage to console

Parameters:
im the Info Message to display
void serializeInfoMessage ( struct infoMessage im,
unsigned char *  destinationPtr 
)

Outputs the info message as a stream of bytes to memory pointed to by destinationPtr Number of bytes streamed is equal to getSizeOfInfoMessage()

Parameters:
im the infoMessage to serialize
destination points to a region of memory at least getSizeOfInfoMessage() bytes in size
 All Data Structures Files Functions Variables Defines
Generated on Thu Aug 19 11:48:41 2010 for CC2530ZNP Examples by  doxygen 1.6.3